use js_utils;
use wasm_bindgen_test::*;

#[wasm_bindgen_test]
fn alert_name() {
    js_utils::greet("hboot");
}

#[test]
fn bubble_sort_test() {
    let mut arr = [2, 3, 1, 4];

    js_utils::bublle_sort(&mut arr);

    assert_eq!(arr, [1, 2, 3, 4]);
}
#[test]
fn sort_test() {
    let mut arr = [2, 3, 1, 4];

    js_utils::sort(&mut arr);

    assert_eq!(arr, [1, 2, 3, 4]);
}

wasm_bindgen_test_configure!(run_in_browser);
